package com.wzdigit.wms.basic.mapper.core.basic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.basic.ZoneGroupAttr;
import com.wzdigit.wms.basic.client.response.basic.ZoneGroupAttrResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 区域属性 Mapper 接口
 * </p>
 *
 * @author
 * @since 2020-12-28
 */
@MyBatisRepository
public interface ZoneGroupAttrMapper extends BaseMapper<ZoneGroupAttr> {

	List<ZoneGroupAttrResponse> selectAllByZoneGroupId(@Param("zoneGroupId") Integer zoneGroupId);

	ZoneGroupAttr selectOneByAttrAndZoneGroupId(@Param("attr") String attr, @Param("zoneGroupId") Integer zoneGroupId);

	int deleteByZoneGroupIdAndNotId(@Param("zoneGroupId") Integer zoneGroupId, @Param("notDelIds") List<Integer> notDelIds);

	int deleteByZoneGroupId(@Param("zoneGroupId") Integer zoneGroupId);

	int deleteByPrimaryKey(Integer zoneGroupAttrId);

	int insert(ZoneGroupAttr record);

	ZoneGroupAttr selectByPrimaryKey(Integer zoneGroupAttrId);

	int updateByPrimaryKeySelective(ZoneGroupAttr record);

	int updateByPrimaryKey(ZoneGroupAttr record);
}